-- GENERATED SPELL FOR [Mage Hunter] --


function spell0_4681(pUnit, Event) --@Plague Mind,Drain--
pUnit:FullCastSpellOnTarget(3429,pUnit:GetRandomPlayer(4))
pUnit:RegisterEvent('Sorts_4681', 4000, 1)
end

function Sorts_4681(pUnit, Event)
local choix_sorts_4681 = math.random(0, 0)
if choix_sorts_4681 == 0 then
pUnit:RegisterEvent('spell0_4681', 1, 1)
end
end

function mob4681_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4681', math.random(1500, 3000), 1)
end

function mob4681_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4681_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4681_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4681, 1, 'mob4681_Action')
RegisterUnitEvent(4681, 2, 'mob4681_Leave')
RegisterUnitEvent(4681, 3, 'mob4681_Kill')
RegisterUnitEvent(4681, 4, 'mob4681_Die')
